<div class="content_left_nedited">
<div class="form_element" >
<%= flash_info_tag %>
<%= form_remote_tag (:update =>"event_header",:after => "insertWaitingImg('event_header')", :url=>{:controller => "events" ,:action => 'set_title_and_date', :id => @event}) %>
<p><label for="event_title">Title</label><br/>
<%= text_field 'event', 'title' ,:size=>'62' , :maxlength=> 255 %><br/>
<label for="event_date_year">Date</label>
<br/>Year <%= text_field 'event_date', 'year' ,:size=>'4' , :maxlength=> 4 %>
Month <%= text_field 'event_date', 'month' ,:size=>'2' , :maxlength=> 2 %>
Day <%= text_field 'event_date', 'day' ,:size=>'2' , :maxlength=> 2 %>
Hour <%= text_field 'event_date', 'hour' ,:size=>'2' , :maxlength=> 2 %>
Min. <%= text_field 'event_date', 'min' ,:size=>'2' , :maxlength=> 2 %>
</p>
<%= submit_tag "Edit"%>
<%= link_to_remote('<input type="button" value="Cancel" />',
    :update => 'event_header',:after => "insertWaitingImg('event_header')", :url => {:controller =>"events", :action => "return_title", :id => @event})%>
<%= end_form_tag %>
</div>
</div>